package xyz.bali16.module.invitecode.model.invitecode;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
@ApiModel("添加邀请码参数")
public class InviteCodeAddParam {

    @ApiModelProperty(name = "code", value = "邀请码", required = true)
    @NotNull(message = "邀请码不能为空")
    private String code;

    @ApiModelProperty(name = "num", value = "邀请码使用次数", required = true)
    @NotNull(message = "邀请码使用次数不可为空")
    private Integer num;

}
